package demo.java.jvm.memorymodel;


public class TestStack {

	private int count=0;
	public void recursion(){
		count++;
		recursion();
	}

	public void testStack(){
		try {
			recursion();
		} catch (Exception e) {
			System.err.println("deep of stack is "+count);//溢出深度
			e.printStackTrace();
		}
	}
	
}
